home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / vopl / glvopl.lha / glvopl / Makefile.sgi < prev    next >
Encoding:
Makefile  |  1993-10-08  |  1.5 KB  |  77 lines

  1. #
  2. # Makefile for vopl
  3. #
  4. # Usage: make -f Makefile.sgi
  5. #
  6. ############################################################
  7. #
  8. SHELL = /bin/sh
  9. RANLIB = echo
  10.  
  11. #
  12. # Global CFLAGS can be set here. These are the ones we use on a sun.
  13. #
  14. # NOTE: change the -L bit or put libvogl.a and libhershey.a somewhere
  15. # where the linker can find them....
  16. WHERELIBS = -L/home/muse/mu/guest/decr/lib
  17. MCFLAGS = -O -DSGI_GL
  18. #
  19. # If we have fortran and want the examples compiled we have to say so.
  20. #
  21. F77 =
  22. # Global FFLAGS can be set here. These are the ones we use on a sun.
  23. #
  24. MFFLAGS = -g
  25.  
  26. #
  27. # The name of the library to install and where to put it.
  28. #
  29. LIB = libvopl.a
  30. DEST = /usr/lib
  31.  
  32. #
  33. # Any other libraries that are needed go here
  34. #
  35.  
  36. SGILIBS = -lgl_s
  37.  
  38.  
  39. all:
  40.     cd src; make -f Makefile \
  41.             RANLIB="$(RANLIB)" \
  42.             MCFLAGS="$(MCFLAGS)"
  43.  
  44.     if test -n "$(F77)" ; \
  45.     then     cd examples; \
  46.         make -f Makefile.f77 \
  47.             MFFLAGS="$(MFFLAGS)" \
  48.             WHERELIBS="$(WHERELIBS)" \
  49.             LIBS="$(SGILIBS)"; \
  50.     fi; exit 0
  51.  
  52.     cd examples; make -f Makefile \
  53.             MCFLAGS="$(MCFLAGS)" \
  54.             WHERELIBS="$(WHERELIBS)" \
  55.             LIBS="$(SGILIBS)"
  56.  
  57.     cd gpp; make -f Makefile \
  58.             MCFLAGS="$(MCFLAGS)" \
  59.             WHERELIBS="$(WHERELIBS)" \
  60.             LIBS="$(SGILIBS)"
  61.  
  62. clean:
  63.     cd src; make clean
  64.     cd examples; make clean
  65.     cd examples; make -f Makefile.f77 clean
  66.     cd gpp; make clean
  67.  
  68. clobber:
  69.     cd src; make clobber
  70.     cd examples; make clobber
  71.     cd examples; make -f Makefile.f77 clobber
  72.     cd gpp; make clobber
  73.  
  74. install:
  75.     cp src/$(LIB) $(DEST)
  76.     chmod 644 $(DEST)/$(LIB)
  77.